//
//  ViewController.m
//  06-CycleImages
//
//  Created by 曹曹 on 16/7/21.
//  Copyright © 2016年 曹曹. All rights reserved.
//

#import "ViewController.h"
#import "GXCycleImages.h"

#define kScreenBounds [UIScreen mainScreen].bounds
#define kWidth kScreenBounds.size.width
#define kHeight kScreenBounds.size.width

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    NSArray *array = @[@"0", @"1", @"2", @"3", @"4"];
    GXCycleImages *cycle = [[GXCycleImages alloc] initWithFrame:CGRectMake(0, 100, kWidth, 200)];
    cycle.cycleScrollView.showsHorizontalScrollIndicator = NO;
    [cycle setImagesWithArray:array];
    cycle.imagesPageControl.currentPageIndicatorTintColor = [UIColor redColor];
    cycle.imagesPageControl.pageIndicatorTintColor = [UIColor lightGrayColor];
    [self.view addSubview:cycle];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    
}

@end
